from ronglian_sms_sdk import SmsSDK

accId = '2c94811c93863e4f0193f68e103216aa'
accToken = '0836c2a0ed234c1980948cd0d9818ab2'
appId = '2c94811c93863e4f0193f68e11c016b1'

def send_message(mobile,code):
    sdk = SmsSDK(accId, accToken, appId)
    tid = '1'
    mobile = mobile
    datas = (code,)
    resp = sdk.sendMessage(tid, mobile, datas)
    return resp

